<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/template/internet-template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:jsf="http://xmlns.jcp.org/jsf"
                xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:define name="title">Álbuns</ui:define>
    <ui:define name="container">
        <h:form>

            <fieldset>
                <legend> Álbuns encontrados </legend>
                <h:panelGroup rendered="${not empty albumSearch.result}">

                    <ui:repeat value="${albumSearch.result}" var="album">
                        <a class="linksSearch" href="page.jsp?idAlbum=${album.id}">${album.title}</a>
                        <br/>
                        ${album.artist.name} - ${album.year}
                        <br/>
                        Gravadora: ${album.recorder.name}
                        <br/>
                        <br/>
                    </ui:repeat>

                </h:panelGroup>
                <h:panelGroup rendered="${empty albumSearch.result}">
                    <br/>
                    Nenhum álbum encontrado.
                </h:panelGroup>
            </fieldset>


        </h:form>
    </ui:define>

</ui:composition>

